var xmlHttp55;

//////////////////////////
function subcastcheck(id){

document.getElementById("branch").innerHTML="<img src='images/loading.gif' width='20' height='20' > Loading.......";  
xmlHttp55=GetXmlHttpObject()
if (xmlHttp55==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="castlist.php";
//id="'"+id+"'";
url=url+"?id="+id;				
url=url+"&sid="+Math.random();
//alert (url);
xmlHttp55.onreadystatechange=stateChangedEfff;
xmlHttp55.open("GET",url,true);
xmlHttp55.send(null);
}
function stateChangedEfff() 
{ 
if (xmlHttp55.readyState==4)
document.getElementById("branch").innerHTML=xmlHttp55.responseText;
}
///////////////////
function GetXmlHttpObject()
{
var xmlHttp55=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp55=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp55=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp55=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp55;
}